package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractItem entity provides the base persistence definition of the Item
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractItem implements java.io.Serializable {

	// Fields

	private Integer itemId;
	private String itemName;
	private Double price;
	private String description;
	private String picturePath;
	private Integer stockAmount;
	private Set itemDiscounts = new HashSet(0);
	private Set deals = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractItem() {
	}

	/** minimal constructor */
	public AbstractItem(String itemName, Double price, String description,
			String picturePath, Integer stockAmount) {
		this.itemName = itemName;
		this.price = price;
		this.description = description;
		this.picturePath = picturePath;
		this.stockAmount = stockAmount;
	}

	/** full constructor */
	public AbstractItem(String itemName, Double price, String description,
			String picturePath, Integer stockAmount, Set itemDiscounts,
			Set deals) {
		this.itemName = itemName;
		this.price = price;
		this.description = description;
		this.picturePath = picturePath;
		this.stockAmount = stockAmount;
		this.itemDiscounts = itemDiscounts;
		this.deals = deals;
	}

	// Property accessors

	public Integer getItemId() {
		return this.itemId;
	}

	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPicturePath() {
		return this.picturePath;
	}

	public void setPicturePath(String picturePath) {
		this.picturePath = picturePath;
	}

	public Integer getStockAmount() {
		return this.stockAmount;
	}

	public void setStockAmount(Integer stockAmount) {
		this.stockAmount = stockAmount;
	}

	public Set getItemDiscounts() {
		return this.itemDiscounts;
	}

	public void setItemDiscounts(Set itemDiscounts) {
		this.itemDiscounts = itemDiscounts;
	}

	public Set getDeals() {
		return this.deals;
	}

	public void setDeals(Set deals) {
		this.deals = deals;
	}

}